<?php
require_once( dirname( __FILE__ ) . '/../../newestBannerWidget/actions/components.class.php' ); // showin, showby actions
class randomBannerWidgetComponents extends newestBannerWidgetComponents{

	public function executeRender(){
		return parent::executeRender();
	}

	public function setWidgetSpecificCriteria(Doctrine_Query $q){
		return $q->orderBy('RANDOM()')
				->limit(1);
	}
	
}